<? 
	session_start();
	require("Admin/connect.php");
	$matb=$_REQUEST["tbid"];			
	$mal=$_REQUEST["lopid"];
	$noidung=$_REQUEST["noidung"];	
	$ngay=$_REQUEST["demol1"];
	$sqldate = strtotime($ngay);
	$date = date('Y-m-d', $sqldate);						
	$sql="update thongbaolop set noidung='{$noidung}', ngay='{$date}' where matb='{$matb}' ";	
	mysql_query("$sql") or die("Error!");
	mysql_close();	
	header("Location:lopcuatoi.php?mal=$mal");	
?>